function extraTool(data, tool) {
    switch (tool.type) {
        case "login":
            layer.confirm('确定要登录吗？', function (index) {
                layer.load();


                $.ajax({
                    type: 'GET',
                    url: tool.url,
                    data: {id: data.id},
                    dataType: "json",
                    success: function (data) {
                        if (data.code == 1) {

                            drawer.open({
                                title: ["当前登录 - " + data.data, 'font-size:15px;color:#000;text-align: center;font-weight: bold'],
                                closeBtn: 1,
                                offset: "r",
                                area: "20%",
                                iframe: "/",
                                content: "前台"
                            })

                            // notify.success(data.msg, 1500, function () {
                            //     window.open("/");
                            // });
                        } else {
                            notify.error(data.msg);
                        }
                    }
                });
                layer.closeAll();
            });
            break;
    }

}